<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W4C//DTD HTML 4.02 Transitional//EN" "http://www.w4.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Portal for kids</title>
<link rel="stylesheet" href="css/themes/base/jquery.ui.all.css">
<link rel="stylesheet" href="css/demos.css">
<link rel="stylesheet" href="css/search_style.css">
<style>
		body { font-size: 62.5%; }
		label, input { display:block; }
		input.text { margin-bottom:12px; width:95%; padding: .4em; }
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain { width: 350px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
		.ui-dialog .ui-state-error { padding: .3em; }
		.validateTips { border: 1px solid transparent; padding: 0.3em; }
	</style>
	

</head>
<body>
			<div id="users-contain" class="ui-widget">
			<table id="users" class="ui-widget ui-widget-content">
			<thead>
			<tr class="ui-widget-header ">
				<th>Typ</th>
				<th>Nazwa</th>
				<th>Adres</th>
				<th>Opis</th>
				<th>Ocena</th>
				<th>Liczba głosów</th>
				<th>Szczegóły</th>
			</tr>
			<tbody>
				<s:iterator value="placesList" >
					<tr>
						<td ><s:property value="type"/>
						<td><s:property value="name"/></td>
						<td><s:property value="adress"/></td>
						<td ><s:property value="description"/></td>
						<td ><s:property value="rating"/></td>
						<td ><s:property value="numberOfVotes"/></td>
						<td ><a href="showPlacesDetails.jsp?id=<s:property value="id_place"/>">szczegoly</a></td>
					</tr>	
				</s:iterator>
			</tbody>	
			</table>
			</div>


</body>
</html>